package com.example.rightmost.dao;

import com.example.rightmost.entity.Fans;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface FansMapper {

    //查询粉丝数
    Integer getFansCount(Integer id);

    //查询关注数
    Integer getFollowCount(Integer id);

    //关注
    int setFollow(Fans fans);

    //取消关注
    int delFollow(Fans fans);

    //判断关注状态
    Integer getFollowInfo(Fans fans);

}
